﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alos.IRepository;
using Alos.IService;
using PetaPoco;
using Alos.Entity;
using Alos.Common;


namespace Alos.Service
{
    public class ReArrangeRecordService : BaseService<ReArrangeRecord>, IReArrangeRecordService
    {
        IReArrangeRecordRepository ReArrangeRecordRepository;
        public ReArrangeRecordService(IReArrangeRecordRepository _ReArrangeRecordRepository)
        {
            ReArrangeRecordRepository = _ReArrangeRecordRepository;
        }
        /// <summary>
        /// 添加发布记录表
        /// </summary>
        /// <param name="reArrangeRecord">发布记录表</param>      
        /// <returns></returns>
        public bool CreateReArrangeRecord(ReArrangeRecord reArrangeRecord,string serviceIP)
        {
            return ReArrangeRecordRepository.CreateReArrangeRecord(reArrangeRecord, serviceIP);
        }
        /// <summary>
        /// 修改发布记录表
        /// </summary>
        /// <param name="id">发布记录表ID</param>      
        /// <returns></returns>
       public bool UpdateReArrangeRecord(int id)
       {           
            return ReArrangeRecordRepository.UpdateReArrangeRecord(id);
        }
       /// <summary>
       /// 发布记录表
       /// </summary>
       /// <param name="id">发布记录表ID</param>      
       /// <returns></returns>
       public ReArrangeRecord GetReArrangeRecord(int LessonID, int teacherid)
       {
           return ReArrangeRecordRepository.GetReArrangeRecord(LessonID, teacherid);
       }
    }
}
